# This file defines various unit tests against the app's models.

from items.models import item_def, item_instance

for i in range (0, 5):
    newitem = item_def()
    newitem.itemname = "Item " + i.__str__()
    newitem.itemtype = "Held"
    newitem.effects = ["a", "b", "c"]
    newitem.equiplocs = ["TAKE", "BODY"]
    newitem.weight = i
    newitem.value = i*10
    newitem.put()
    newiteminst = item_instance()
    newiteminst.parentitem = newitem.key()
    newiteminst.level = i*3
    newiteminst.ac = i*20
    newiteminst.noclasses = ["ANTI_MAGE"]
    newiteminst.put()
    
    
